package com.controller.front;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.entity.Query.SingerQuery;
import com.service.front.SingerFrontQueryService;

@RequestMapping("/singerFrontQuery")
@Controller
public class SingerFrontQueryController {

	@Autowired
	private SingerFrontQueryService singerFrontQueryService;
	
	@RequestMapping("singerFrontQuery_show")
	public String singerFrontQuery_show(Model model,SingerQuery singerQuery) {
		List<Map<String, Object>> singerFrontQueryList = singerFrontQueryService.querySingerName(singerQuery);
		model.addAttribute("singerFrontQueryList", singerFrontQueryList);
		return "seek";
	}
}
